FontMetrics

data class FontMetrics(val ascender: Float, val descender: Float, val unitsPerEm: Float, val lineGap: Float, val capHeight: Float, val xHeight: Float, val underlineOffset: Float, val underlineSize: Float, val strikeoutOffset: Float, val strikeoutSize: Float)

Font metrics extracted from a font file. Values are in the font's design units coordinate space.

Constructors

Link copied to clipboard
constructor(ascender: Float, descender: Float, unitsPerEm: Float, lineGap: Float, capHeight: Float, xHeight: Float, underlineOffset: Float, underlineSize: Float, strikeoutOffset: Float, strikeoutSize: Float)

Properties

Link copied to clipboard

The ascender value in font design units.

Link copied to clipboard

The OS/2 sCapHeight value in font design units.

Link copied to clipboard

The descender value in font design units (typically negative).

Link copied to clipboard

The OS/2 sTypoLineGap value in font design units.

Link copied to clipboard

The OS/2 yStrikeoutPosition value in font design units.

Link copied to clipboard

The OS/2 yStrikeoutSize value in font design units.

Link copied to clipboard

The post.underlinePosition value in font design units (typically negative). A missing or zero value defaults to -1/18 em, rounded toward zero.

Link copied to clipboard

The post.underlineThickness value in font design units. A missing or zero value defaults to 1/18 em, rounded toward zero.

Link copied to clipboard

The number of units per em square (typically 1000 or 2048).

Link copied to clipboard

The OS/2 sxHeight value in font design units.